package com.hanthink.system.service.impl.pc;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hanthink.system.domain.pc.EmResourceCallGroup;
import com.hanthink.system.mapper.EmResourceCallGroupMapper;
import com.hanthink.system.service.pc.IEmResourceCallGroupService;

/**
 * 响应用户组Service业务层处理
 * 
 * @author hanthink
 * @date 2021-01-25
 */
@Service
public class EmResourceCallGroupServiceImpl implements IEmResourceCallGroupService 
{
    @Autowired
    private EmResourceCallGroupMapper emResourceCallGroupMapper;

    /**
     * 查询响应用户组
     * 
     * @param id 响应用户组ID
     * @return 响应用户组
     */
    @Override
    public EmResourceCallGroup selectEmResourceCallGroupById(Long id)
    {
        return emResourceCallGroupMapper.selectEmResourceCallGroupById(id);
    }

    /**
     * 查询响应用户组列表
     * 
     * @param emResourceCallGroup 响应用户组
     * @return 响应用户组
     */
    @Override
    public List<EmResourceCallGroup> selectEmResourceCallGroupList(EmResourceCallGroup emResourceCallGroup)
    {
        return emResourceCallGroupMapper.selectEmResourceCallGroupList(emResourceCallGroup);
    }

    /**
     * 新增响应用户组
     * 
     * @param emResourceCallGroup 响应用户组
     * @return 结果
     */
    @Override
    public int insertEmResourceCallGroup(EmResourceCallGroup emResourceCallGroup)
    {
        return emResourceCallGroupMapper.insertEmResourceCallGroup(emResourceCallGroup);
    }

    /**
     * 修改响应用户组
     * 
     * @param emResourceCallGroup 响应用户组
     * @return 结果
     */
    @Override
    public int updateEmResourceCallGroup(EmResourceCallGroup emResourceCallGroup)
    {
        return emResourceCallGroupMapper.updateEmResourceCallGroup(emResourceCallGroup);
    }

    /**
     * 批量删除响应用户组
     * 
     * @param ids 需要删除的响应用户组ID
     * @return 结果
     */
    @Override
    public int deleteEmResourceCallGroupByIds(Long[] ids)
    {
        return emResourceCallGroupMapper.deleteEmResourceCallGroupByIds(ids);
    }

    /**
     * 删除响应用户组信息
     * 
     * @param id 响应用户组ID
     * @return 结果
     */
    @Override
    public int deleteEmResourceCallGroupById(Long id)
    {
        return emResourceCallGroupMapper.deleteEmResourceCallGroupById(id);
    }
}
